package com.sunxd.zstudy.java8.genericity;

public class Generic2<T1,T2> {
    // key 这个成员变量的数据类型为 T, T 的类型由外部传入
    private T1 key1;
    private T2 key2;
    public Generic2(T1 key1,T2 key2) {
        this.key1 = key1;
        this.key2 = key2;
    }
    public T1 getKey1(){
        return key1;
    }
    public T2 getKey2(){
        return key2;
    }

}